﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Rect</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: 宋体, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" border=1 cellSpacing=0 
borderColor=#000000 cellPadding=1 width=800>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>定义</FONT></P></TD>
    <TD width=680><FONT size=2><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>void 
      xge::shape::Rect(int x1, int y1, int x2, int y2, int c, xge::Surface* sf = 
                                NULL);<br>void xge::shape::RectEx(int x1, int y1, int x2, int y2, int c, int s, xge::Surface* sf = NULL);<br>void xge::shape::RectFull(int x1, int y1, int x2, int y2, int c, xge::Surface* sf = NULL);<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>Sub xge.shape.Rect(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, c As Integer, sf As xge.Surface Ptr = NULL)<br>Sub xge.shape.RectEx(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, c As Integer, s As Integer, sf As xge.Surface Ptr = NULL)<br>Sub xge.shape.RectFull(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, c As Integer, sf As xge.Surface Ptr = NULL)<br><br><STRONG><FONT color=#0000ff>SDK_C：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_BASIC：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_Pascal：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_易语言：</FONT></STRONG><br>暂未公布<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>功能</FONT></P></TD>
    <TD width=680><FONT size=2><br>在图像或场景中画矩形。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>参数</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>x1：</FONT></STRONG><br>矩形左上角的横坐标。<br><br><STRONG><FONT color=#0000ff>y1：</FONT></STRONG><br>矩形左上角的纵坐标。<br><br><STRONG><FONT color=#0000ff>x2：</FONT></STRONG><br>矩形右下角的横坐标。<br><br><STRONG><FONT color=#0000ff>y2：</FONT></STRONG><br>矩形右下角的纵坐标。<br><br><STRONG><FONT color=#0000ff>c：</FONT></STRONG><br>线条或填充颜色。<br><br><STRONG><FONT color=#0000ff>s：</FONT></STRONG><br>线条虚线风格，将32位整数拆成32个二进制位，由每一位确定是否描点[0=不画,1=画]。<br><br><STRONG><FONT color=#0000ff>sf：</FONT></STRONG><br>要绘制到的图像指针，如果传递NULL，则绘制到场景中。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>返回值</FONT></P></TD>
    <TD width=680><FONT size=2><br>无返回值。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>补充说明</FONT></P></TD>
    <TD width=680><FONT size=2><br>无。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>使用范例</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>无范例。<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>无范例。</FONT></TD></TR></TABLE></P></body>